package com.cldz.dao;

import com.cldz.common.dto.req.DevChannelDto;
import com.cldz.common.dto.req.ValuePropertyDto;
import com.cldz.entity.DeviceChannel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ Author     ：lixiao.
 * @ Date       ：Created in 13:28 2018/12/18
 * @ Description：
 * @ Modified By：
 */
@Mapper
public interface DevChannelMapper {

    List<DeviceChannel> getRegulatChannel(Integer devID);

    List<DeviceChannel> getControlChannel(Integer devID);

    List<ValuePropertyDto> getValueMeanListWithDevID(DevChannelDto devChannelDto);

    List<ValuePropertyDto> getValueMeanListWithDevType(DevChannelDto devChannelDto);

    List<DeviceChannel> getDevChannels(DevChannelDto devChannelDto);

    Integer getDevChannelsAmount(DevChannelDto devChannelDto);

    List<DeviceChannel> getDevChannelsWithTypeID(DevChannelDto devChannelDto);

    Integer getDevChannelsAmountWithTypeID(DevChannelDto devChannelDto);

    DeviceChannel getSpecifyChannel(DevChannelDto devChannelDto);

    List<DeviceChannel> getBaseChannels(DevChannelDto devChannelDto);

    Integer getBaseChannelsAmount(DevChannelDto devChannelDto);
}
